package  com.pcbly.web.business.news;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.news.NewsCategoryBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface NewsCategoryService extends BaseService<NewsCategoryBean> {

	NewsCategoryBean getNewsCategoryBeanById(String id) throws Exception;
	
	void removeNewsCategoryBeanById(String id) throws Exception;
	
	void removeNewsCategoryBeanByIds(String ids) throws Exception;
	
	NewsCategoryBean saveNewsCategoryBean(NewsCategoryBean news) throws Exception;
	
	NewsCategoryBean updateNewsCategoryBean(NewsCategoryBean news) throws Exception;
	
	Page<NewsCategoryBean>  findNewsCategoryBeanByCond(NewsCategoryBean bean,
			Page<NewsCategoryBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveNewsCategoryBeanExt(String sql) throws Exception;

	String findNewsCategoryBeanExtCreate(String tableName) throws Exception;

	String findNewsCategoryBeanExtEdit(String tableName, String id)
			throws Exception;

	String findNewsCategoryBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasNewsCategoryBeanExtData(String tableName, String id)
			throws Exception;
}